Skip to content

Refactor ParamsBuilder to use setter instead of parameter #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

avstudnitz
Copy link
Contributor

This makes the interface more consistent as "setBroaden" is also
implemented as a setter.
Required by integer-net/solr-base#8

This makes the interface more consistent as "setBroaden" is also
implemented as a setter.
* @param string $attributeToReset
* @return $this
*/
public function setAttributeToReset($attributeToReset)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this empty method should not be necessary after suggested changes in integer-net/solr-base#8

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but solr-base is not changed yet? Tests now fail with

Fatal error: Declaration of IntegerNet\SolrSuggest\Query\SearchTermSuggestParamsBuilder::buildAsArray() must be compatible with IntegerNet\Solr\Query\ParamsBuilder::buildAsArray($attributeToReset = '') in /pipeline/source/src/SolrSuggest/Query/SearchTermSuggestParamsBuilder.php on line 16

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had aborted work on integer-net/solr-base#8. Probably that's why, don't remember exactly at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants